﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media.Imaging;
using System.Xml.Serialization;
namespace Yugi.Client.Card
{
    [Serializable]
    [XmlInclude(typeof(YSpellCard))]
    [XmlInclude(typeof(YMonsterCard))]
    [XmlInclude(typeof(YTrapCard))]
    public class YBaseCard
    {
        public YBaseCard()
        {
        }
        public int Speed
        {
            get;
            set;
        }
        public template Template
        {
            get;
            set;
        }
        public YType CardType
        {
            get;

            set;

        }

        public string Name
        {
            get;

            set;

        }

        /// <summary>
        /// Hinh Tong The La Bai
        /// </summary>
        [NonSerialized]
        public System.Windows.Media.ImageSource displayImage;

        public string Description
        {
            get;

            set;

        }

        public int ID
        {
            get;

            set;

        }

        public int Card_TypeID { get; set; }
        public string Rights
        {
            get;
            set;
        }
        

        public override string ToString()
        {
            return this.ID.ToString();
        }
    }
}
